<!--
File Upload Meter - DEMO and API
http://abhinavsingh.com/webdemos/fileuploadmeter/fileuploadmeter.rar
http://abhinavsingh.com/blog/2008/08/how-to-create-an-upload-meter-in-php-explained/
Developer : Abhinav Singh
Contact : admin@abhinavsingh.com
Date : 29th August, 2008

NOTE: Kindly keep this part of the code untouched if you are using or copying the code from here. 
Thanks in advance,
Abhinav
-->
<html>
  <head>
    <script type="text/javascript" src="upload.js"></script>
  </head>
  <body>
    <form id="upload" name="upload" target="frame" action="utility.php" method="POST" enctype="multipart/form-data">
      
      <!-- Setting this enables apc upload tracking -->
      <input type="hidden" name="APC_UPLOAD_PROGRESS" id="fileKey" value="<?php echo md5(uniqid(rand(),true)); ?>"/>
      
      <!-- Hidden field for the upload form -->
      <input type="hidden" id="uploadfile" name="uploadfile" value="uploadfile"/>
      
      <!-- DIV containing the file chooser box, it will be replaced by the filename after upload -->
      <div id="attachment">
        <input id="fileloc" name="fileloc" size="30" type="file" onchange="document.upload.submit();return false;"/>
      </div>
      
      <!-- DIV showing the upload progress bar -->
      <div id="showProgress" style="margin-top:5px;width:205px;height:15px;border:1px solid #93B9D9;display:none">
        <div id="currentStatus" style="width:0px;height:15px;background-color:#B2D281"></div>
      </div>
      
      <!-- iframe handling all the upload -->
      <iframe name="frame" style="display:none"></iframe>
      
      <!-- DIV which catches all the error and other messages -->
      <div id="upload-note"></div>
    </form>
  </body>
</html>
